From c1ab310e0811e3bbf24db62ffaa9adfb5407b4e0 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 19 May 2008 09:42:18 +0100 Subject: [PATCH] ioemu: Fix load of PCI-device IRQ state after save/restore. From: Ian Jackson Signed-off-by: Keir Fraser --- tools/ioemu/hw/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ioemu/hw/pci.c b/tools/ioemu/hw/pci.c index 250dfcb3c9..31ac04be78 100644 --- a/tools/ioemu/hw/pci.c +++ b/tools/ioemu/hw/pci.c @@ -101,7 +101,7 @@ int pci_device_load(PCIDevice *s, QEMUFile *f) int i; qemu_get_buffer(f, &irq_state, 1); for (i = 0; i < 4; i++) - pci_set_irq(s, i, !!(irq_state >> i)); + pci_set_irq(s, i, (irq_state >> i) & 1); } return 0; } -- 2.30.2